package com.bit.ioc.Service;

import com.bit.ioc.model.Student;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Qualifier("s2")
    @Autowired
    private Student s1;
    @Resource(name = "s1")
    private Student s2;
    public void print(){
        System.out.println("do service");
    }
}
